package com.xsq.newmall01.Dao;

import org.springframework.stereotype.Repository;

@Repository
public class Ownership {
    private int id;
    private int userid;
    private int goodid;
    private int userkind;

    public Ownership() {
    }

    public Ownership(int id, int userid, int goodid, int userkind) {
        this.id = id;
        this.userid = userid;
        this.goodid = goodid;
        this.userkind = userkind;
    }
    public Ownership(int id){
        this.id = id;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userid
     */
    public int getUserid() {
        return userid;
    }

    /**
     * 设置
     * @param userid
     */
    public void setUserid(int userid) {
        this.userid = userid;
    }

    /**
     * 获取
     * @return goodid
     */
    public int getGoodid() {
        return goodid;
    }

    /**
     * 设置
     * @param goodid
     */
    public void setGoodid(int goodid) {
        this.goodid = goodid;
    }

    /**
     * 获取
     * @return userkind
     */
    public int getUserkind() {
        return userkind;
    }

    /**
     * 设置
     * @param userkind
     */
    public void setUserkind(int userkind) {
        this.userkind = userkind;
    }

    public String toString() {
        return "Ownership{id = " + id + ", userid = " + userid + ", goodid = " + goodid + ", userkind = " + userkind + "}";
    }
}
